<%# this should be set by the caller, this is an extra check -%>
<% odd_row ||= false -%>
<% narrow_view ||= false -%>

<table class="list_item">
	<% if Authorization.is_authorized?("view", nil, item, current_user) -%>
	<tr>
		<!-- text align center inline due to some css cascade that i cant figure out !! -->
		<td class="table-award" colspan=2 style="text-align:center;">
			<!-- <p class="title center"> -->
			      <% unless item.title.blank? -%>
			        <% title = h(item.title) -%>
			      <% else -%>
			        <span class="none_text">No title</span>
			      <% end -%>
			      <%= link_to(title, script_path(item)) -%><div class="inline" id="award"><%= render :partial => "recommendations/awards", :locals => { :count => item.recommendations.size } %></div>
			<!-- </p> -->
		</td>
	</tr>
  <tr>
    <td rowspan=2>
      <center><%= contributor(item.asset.contributor, true, 60) -%></center>
	</td>
	<td>
		<p style="font-size: 85%; margin-top: 0.4em;">
        <b>Created:</b>
        <%= item.created_at.strftime('%d/%m/%Y @ %H:%M:%S') -%>
      </p>
	</td>
	</tr>
	<tr>
			<td>
				<% if Authorization.is_authorized?("download", nil, item, current_user) -%>
		          <%= icon "download", download_script_url(item) -%>
		        <% end %>
		<% if Authorization.is_authorized?("view", nil, item, current_user) -%>
		     <%= icon "show", script_url(item), nil, nil, "View" -%>
			<% end %>
		      <% if Authorization.is_authorized?("manage", nil, item, current_user) -%>
		        <%= icon "manage", edit_script_url(item), nil, nil, "Manage" -%>
		      <% elsif Authorization.is_authorized?("edit", nil, item, current_user) -%>
		        <%= icon "edit", edit_script_path(item), nil, nil, "Edit" -%>
		      <% end -%>
			</td>
	</tr>
	<tr>
		<td colspan=2>
		<div class="desc" style="font-size: 85%;">
        <% unless item.description.blank? -%>
          <%= truncate(white_list(item.description), :length=>500) -%>
        <% else -%>
          <span class="none_text">No description</span>
        <% end -%>
      </div>
		</td>
	</tr>
	<% end %>
</table>